Skip to main content

LongestCommonSequencePositions

LongestCommonSequencePositions[s1,s2] finds the longest sequence of contiguous or disjoint elements common to the strings or lists s1 and s2 and returns their positions.

LongestCommonSequencePositions[s1,s2] finds the longest sequence of contiguous or disjoint elements common to the strings, lists or biomolecular sequences s1 and s2 and returns their positions.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.